package com.haikesi.api.subscribertable.domain.vo;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**  
 * @ClassName:  SubscriberTableVo 
 * @Description:    TODO(用一句话描述该文件做什么)   
 * @author: zqy     
 * @date:   2019年5月16日 上午9:13:06   
 * @version V1.0 
 * @Copyright: 2019 重庆海克斯科技有限公司. 
 * 注意：本内容仅限于重庆海克斯科技有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
@ApiModel(description = "查询参数")
@Data
@EqualsAndHashCode(callSuper = false)
public class SubscriberTableSearchVo implements Serializable{
	
	private static final long serialVersionUID = -1L;
	
	@ApiModelProperty(value = "订阅的账号")
    private String subscriberNumber;

	@ApiModelProperty(value = "订阅状态（0：未发送订阅；1：已发送订阅；2：订阅成功；3：订阅失败）")
    private Integer subscriberState;
	
	@ApiModelProperty(value = "第三方回调地址")
    private String callbackUrl;
	
	@ApiModelProperty(value = "组织机构ID")
    private String organizationId;

    @ApiModelProperty(name = "帐户名称")
    private String userName;
    @ApiModelProperty(name = "帐户手机")
    private String userPhone;
    @ApiModelProperty(name = "账号邮箱")
    private String email;

	@ApiModelProperty(value = "页数")
    private Integer pageNum;
    @ApiModelProperty(value = "每页行数")
    private Integer pageSize;

    public Integer getPageNum() {
        if(pageNum == null){
            pageNum = 1;
        }
        return pageNum;
    }
    public Integer getPageSize() {
        if(pageSize == null){
            pageSize = 20;
        }
        /*if(pageSize > 100){
            pageSize = 100;
        }*/
        return pageSize;
    }
}
